home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / fsavx20d / FORM8.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-04-03  |  1.9 KB  |  64 lines

  1. VERSION 5.00
  2. Object = "{75C038D3-EA57-11D2-A3BC-000000000000}#1.0#0"; "fsScroll5D.ocx"
  3. Begin VB.Form frmClipCursor 
  4.    Caption         =   "ClipCursor"
  5.    ClientHeight    =   2385
  6.    ClientLeft      =   60
  7.    ClientTop       =   345
  8.    ClientWidth     =   5730
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   2385
  11.    ScaleWidth      =   5730
  12.    StartUpPosition =   3  'Windows Default
  13.    Begin VB.CommandButton Command2 
  14.       Caption         =   "OK"
  15.       Height          =   315
  16.       Left            =   4440
  17.       TabIndex        =   2
  18.       Top             =   120
  19.       Width           =   1200
  20.    End
  21.    Begin FishheadScroll.fsScroll fsScroll1 
  22.       Height          =   2145
  23.       Left            =   120
  24.       TabIndex        =   0
  25.       Tag             =   "fsScroll"
  26.       Top             =   120
  27.       Width           =   4155
  28.       _ExtentX        =   7329
  29.       _ExtentY        =   3784
  30.       MouseIcon       =   "Form8.frx":0000
  31.       Begin VB.CommandButton Command1 
  32.          Height          =   315
  33.          Left            =   1290
  34.          TabIndex        =   1
  35.          Top             =   720
  36.          Width           =   1500
  37.       End
  38.    End
  39. Attribute VB_Name = "frmClipCursor"
  40. Attribute VB_GlobalNameSpace = False
  41. Attribute VB_Creatable = False
  42. Attribute VB_PredeclaredId = True
  43. Attribute VB_Exposed = False
  44. Option Explicit
  45. Private Sub Command1_Click()
  46.     fsScroll1.AllowClipCursor = fsScroll1.AllowClipCursor = False
  47.     If fsScroll1.AllowClipCursor Then
  48.         Command1.Caption = "ClipCursor (ON)"
  49.     Else
  50.         Command1.Caption = "ClipCursor (OFF)"
  51.     End If
  52. End Sub
  53. Private Sub Command2_Click()
  54.     Unload Me
  55. End Sub
  56. ' This sample shows how to clip the mouse cursor to fsScroll
  57. ' window area.
  58. Private Sub Form_Load()
  59.     Call Command1_Click
  60. End Sub
  61. Private Sub Form_Unload(Cancel As Integer)
  62.     Set frmClipCursor = Nothing
  63. End Sub
  64.